﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DadayunApi.Model
{
    public class FormTlpInfo
    {
        public string Id { get; set; }
        public string Action { get; set; }
        public string Name { get; set; }
        public int Status { get; set; }
        public ETemplateTypes TemplateType { get; set; }
        public string Creator { get; set; }
        public DateTime CreateTime { get; set; }
        public int Version { get; set; }
        public bool HasInstance { get; set; }
        public string AppearanceHash { get; set; }
        public string AutoFillHash { get; set; }
        public string DataSourceHash { get; set; }
        public string ControlNameHash { get; set; }
        public string EntityName { get; set; }
        public int GroupType { get; set; }
        public bool TitleEnlarge { get; set; }
        public string TitleExpression { get; set; }
        public bool EnableLog { get; set; }
        public bool FormDataStatic { get; set; }
        public string CategoryLabelId { get; set; }
        public string CacheExpression { get; set; }
        public string LayoutConfig { get; set; }
        public int AppFieldLabel { get; set; }
        public string FormButtonConfig { get; set; }
        public List<FormField> Fields { get; set; }
        public string InternationalName { get; set; }
        public bool C { get; set; }
        public bool R { get; set; }
        public bool LU { get; set; }
        public bool U { get; set; }
        public bool IgnoreDefault { get; set; }
        public bool SU { get; set; }
        public bool Control { get; set; }
        public bool Veto { get; set; }
        public bool Export { get; set; }
        public bool Archive { get; set; }
        public List<FormTlpInfo> SubEntityForm { get; set; }
    }
    public class FormField
    {
        public string Action { get; set; }
        public string Id { get; set; }
        public string EntityFormId { get; set; }
        public int ControlTypes { get; set; }
        public string Caption { get; set; }
        public string FieldName { get; set; }
        public int DataType { get; set; }
        public int DataLength { get; set; }
        public bool Nullable { get; set; }
        public bool ChangeRow { get; set; }
        public bool Hidden { get; set; }
        public int OrderIndex { get; set; }
        public bool RemotePaging { get; set; }
        public int PagingSize { get; set; }
        public bool EnableCodeScan { get; set; }
        public bool CameraOnly { get; set; }
        public bool AddWaterMark { get; set; }
        public bool EnableAdvanceFunctions { get; set; }
        public bool EnableCascadeUpdate { get; set; }
        public string CascadeFilter { get; set; }
        public bool OpenAccess { get; set; }
        public int DisplayMode { get; set; }
        public string EntityPropertyName { get; set; }
        public int ButtonPack { get; set; }
        public int AppFieldLabel { get; set; }
        public bool ShowCaption { get; set; }
        public bool AllowArchive { get; set; }
        public string ValidateString { get; set; }
        public string InternationalCaption { get; set; }
        public bool C { get; set; }
        public bool R { get; set; }
        public bool LU { get; set; }
        public bool U { get; set; }
        public bool IgnoreDefault { get; set; }
        public bool SU { get; set; }
        public bool Control { get; set; }
        public bool Veto { get; set; }
        public bool Export { get; set; }
        public bool Archive { get; set; }
    }
}
